package com.yf.aidlservice;

import android.app.Service;
import android.content.Intent;
import android.os.IBinder;
import android.util.Log;

import com.yf.aidlservice.IService.Stub;

public class RemoteService extends Service {

	@Override
	public IBinder onBind(Intent intent) {
		return new MyBinder();
	}
	
	@Override
	public void onCreate() {
		Log.v("RemoteService", "onCreate");
		super.onCreate();
	}
	
	@Override
	public void onDestroy() {
		Log.v("RemoteService", "onDestroy");
		super.onDestroy();
	}
	
	
	private class MyBinder extends Stub {
		public void remoteMethod() {
			Log.v("RemoteService", "remoteMethod");
		}
	}

}
